package main

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"time"
)

func main() {
	a := 10
	a += 10
	fmt.Println(a)
	a =+ 10
	fmt.Println(a)

}

func TestGin() {
	r := gin.Default()
	r.GET("/ping", func(c *gin.Context) {
		go func() {
			fmt.Println("========0========", c.Copy().Err())
			time.Sleep(time.Second)
			fmt.Println("========1========", c.Copy().Err())
		}()
		c.JSON(200, gin.H{
			"a": 1,
		})
	})
	r.Run(":1100")
}
